<admintpl file="header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="javascript:;">编辑数据</a></li>
		</ul>
		<form action="{:U('')}" method="post" class="form-horizontal edit-form" enctype="multipart/form-data">
			<input type="hidden"  style="width: 200px;" name="post[year]"  value="{$info.year}" placeholder=""/>
			<input type="hidden"  style="width: 200px;" name="id"  value="{$_GET[id]}" placeholder=""/>
			<div class="row-fluid">
				<div class="span9">
					<table class="table table-bordered">
						<tr>
							<th>姓名</th>
							<td>{$info.name}</td>
						</tr>
						<tr>
							<th>年假起止</th>
							<td>
							
								<input type="text" name="post[start_date]" class="js-date" value="{$info[start_date]}" style="width: 80px;" autocomplete="off">-
								<input autocomplete="off" type="text" class="js-date" name="post[end_date]" value="{$info[end_date]}" style="width: 80px;">
				
							</td>
						</tr>
						<tr>
							<th>年假数</th>
							<td>
								{$info[total_day]}天
							</td>
						</tr>
						<tr>
							<th>年假调整</th>
							<td>
								<input type="text" type="text" style="width: 200px;" name="post[adjust]" value="{$info[adjust]}" />天 【如果是要扣除，填写‘-1’】
							</td>
						</tr>
						<tr>
							<th>已休年假</th>
							<td>
								<input type="text" style="width: 200px;" name="post[consume_min]" value="{$info[consume_min]}"  />分钟
							</td>
						</tr>
						
						<tr>
							<th>可休全日薪病假</th>
							<td>
								<input type="text" style="width: 200px;" name="post[sick_full_remain]" value="{$info.sick_full_remain}"  />分钟
							</td>
						</tr>
						<tr>
							<th>可休半日薪病假</th>
							<td>
								<input type="text" style="width: 200px;" name="post[sick_half_remain]" value="{$info.sick_half_remain}"  />分钟
							</td>
						</tr>
					</table>
				</div>

			</div>
			<div class="form-actions">
				<button class="btn btn-primary ajax-post" target-form='form-horizontal' type="submit">提交</button>
				<a href="{:U('index')}" class="btn btn-primary js-ajax-submit" type="submit">返回</a>
			</div>
		</form>
	</div>
	<script type="text/javascript" src="__PUBLIC__/js/content_addtop.js?t={:time()}"></script>
	<script type="text/javascript" src="__PUBLIC__/js/common.js"></script>
	<script type="text/javascript">

 	 validateForm({
	      rule:{
	  		'post[title]' : {required : 1},
	  		'post[start_date]' : {required : 1},
	  		'post[end_date]' : {required : 1},
	  		},
	      message:{
		'post[title]' : {required : '请设置节假日名称'},
		'post[start_date]' : {required : '请设置开始时间'},
		'post[end_date]' : {required : '请设置结束时间'},
		}
	 },"{:U('index')}") 
	 
	    
	 </script>
</body>
</html>